﻿namespace Web.Models.ViewModels
{
    public class DbResult
    {
        public dynamic StatusCode { get; set; }

        public dynamic Message { get; set; }

        public dynamic Data { get; set; }

        public DbResult()
        {
            StatusCode = 2;
            Message = "应用程序错误";
        }
    }

    public class DbDataResult : DbResult
    {
        public int PageSize { get; set; }

        public int CurrentPage { get; set; }

        public int RecordCount { get; set; }

        public DbDataResult()
        {
            PageSize = 20;
            CurrentPage = 1;
        }
    }
}
